home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000158_fdc@columbia.edu_Thu Dec 5 16:54:38 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
77 lines
Article: 13939 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with stdout and stderr for kermit95
Date: 5 Dec 2002 16:54:30 -0500
Organization: Columbia University
Lines: 60
Message-ID: <asohum$d8j$1@watsol.cc.columbia.edu>
References: <aso6v9$kr9$1@cpimail.cpicorp.com> <aso8ff$1t3$1@cpimail.cpicorp.com> <aso9fh$2m5$1@watsol.cc.columbia.edu> <asogrg$sdk$1@cpimail.cpicorp.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1039125271 10389 128.59.39.139 (5 Dec 2002 21:54:31 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 5 Dec 2002 21:54:31 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13939
In article <asogrg$sdk$1@cpimail.cpicorp.com>,
Derek Chen-Becker <dbecker@cpicorp.com> wrote:
: Frank da Cruz wrote:
: > As for searching the \&@[] array, it might be better to explain what your
: > goal is and we can suggest ways of achieving it.
: >
: I appreciate your help on this. Basically, I'm written a hotfolder
: script using kermit. The client is a windows machine and the server is a
: unix box running IKSD out of inetd. The script takes a command line
: argument of a configuration file that it reads to determine the remote
: server, username, password, and the location of various folders used for
: the transfer. I originally developed the script on a unix box, so I
: didn't need to specify the "-# 64" arg to get output on stdout, so I
: figured for k95 I just need to shift my index in \&@ over by two.
:
You might first try putting "-# 64" at the end.
: Is there a better way to get command line arguments?
:
No.
: On a not completely unrelated note, I was hoping to put purge
: functionality into the hotfolder script. If a file can't be sent for
: more that 24 hours, I would like to move it from the hot folder to a
: "failed" folder. Is there a way in kermit to get a listing of files in a
: way that I could determine which files are older than "x" hours? The
: directory command doesn't have time specifiers...
:
DIRECTORY /BEFORE:-24:00
See:
http://www.columbia.edu/kermit/ckermit80.html#x8.13
about new date-time features in C-Kermit 8.0 / K95 2.0, especially:
http://www.columbia.edu/kermit/ckermit80.html#x8.13.4
about delta time notation.
To get the names of the files that are older than 24 hours into an
array, \&a[], do:
directory /before:-24:00 /array:&a
: ...and I couldn't find a
: function that would give me a file's last modified time based on a
: filename.
:
The function is \fdate(filename). It probably wasn't obvious from its
name. But in general, you can use SHOW FUNCTIONS to list the names of
all the functions, and HELP FUNCTION <name> to describe any given function.
: I would really like to keep it inside the kermit script to
: simplify the external scheduling program.
:
Don't assume that any particular thing you want to do can't be done in
the Kermit script :-) If it's not obvious, ask here.
- Frank